public class Main{
	public static boolean fat(int x) {
		int a=x-1;
		if(x==1||x==2)
			return true;
		while(a!=1)
		{
			if(x%a==0)
				return false;
			else 
				a--;
		}
		return true;
	}
	public static void main(String[] args ) {	
		int i;
			for(i=3;i<=99;i++)
				if(fat(i)&&fat(i+2))
					 {
					System.out.print(i+"  ");	
					System.out.println(i+2);
					 }
	}		 
}